package com.tian.mapper;

import com.tian.entity.UserMain;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMainMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserMain record);

    UserMain selectByPrimaryKey(Long id);

    List<UserMain> selectAll();

    int updateByPrimaryKey(UserMain record);

    UserMain loginByCode(String phone);

    UserMain loginByPwd(UserMain userMain);
}